package com.mlk.engUser.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.mlk.core.component.page.Page;
import com.mlk.core.util.ServerResponse;
import com.mlk.engUser.po.EngUser;
import com.mlk.engUser.vo.EngUserRemainVO;
import com.mlk.engUser.vo.EngUserVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author trekxu
 * @since 2019-06-17
 */
@Mapper
public interface EngUserMapper extends BaseMapper<EngUser> {

    int addUserScore(@Param("openId") String openId, @Param("score") int score);

    int addRemain(@Param("openId") String openId, @Param("totalPrice") BigDecimal totalPrice);

    List<EngUser> clientList(EngUser engUser);

    List<EngUserRemainVO> userRemainList(EngUserRemainVO vo);
}
